import 'package:flutter/material.dart';

class RegisterPage extends StatefulWidget {
  final Map arguments;
  RegisterPage({Key key, this.arguments}) : super(key: key);

  @override
  _RegisterPageState createState() => _RegisterPageState();
}

class _RegisterPageState extends State<RegisterPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('RegisterPage'),
        backgroundColor: Colors.red,
      ),
      body: Container(
          child: Column(
        children: <Widget>[
          SizedBox(height: 40.0),
          Padding(
            padding: EdgeInsets.fromLTRB(15.0, 0.0, 15.0, 0.0),
            child: TextField(
              decoration: InputDecoration(
                hintText: '请输入手机',
                hintStyle: TextStyle(
                  color: Colors.red,
                ),
                prefixText: 'dd',
              ),
              keyboardType: TextInputType.text,
              textInputAction: TextInputAction.search,
              onChanged: (text) {
                print(text);
              },
              onEditingComplete: () {
                print('complete');
              },
              onSubmitted: (text) {
                print(text);
              },
            ),
          ),
          SizedBox(height: 20.0),
          Padding(
            padding: EdgeInsets.fromLTRB(15.0, 0.0, 15.0, 0.0),
            child: GestureDetector(
              child: Container(
                color: Colors.red,
                height: 44.0,
                child: Text('下一步', style: TextStyle(color: Colors.white, fontSize: 16.0)),
                alignment: Alignment.center,
              ),
              onTap: () {
                Navigator.pushNamed(context, '/registerAuthCodePage', arguments: {});
              },
            ),
          )
        ],
      )),
    );
  }
}
